package com.zy.cat.entity.hdk;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.zy.cat.entity.dtk.SuperCategory;
import com.zy.cat.entity.dtk.SuperCategory.Category;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**  
 * @Description: 好单库超级分类
 * @author xiake
 * @date 2020-08-19 03:45:45 
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("好单库超级分类实体类")
public class HdkSuperCategory {
	@ApiModelProperty(value = "一级分类ID", example = "1")
	private int cid;
	
	@ApiModelProperty(value = "一级分类名称", example = "1")
	@JsonProperty("main_name")
	private String mainName;
	
	@JsonIgnore
	private List<SubcatsParent> data;
	
	private List<Subcats> subcats;
	
	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	@ApiModel("好单库超级分类二级分类分组实体类")
	public static class SubcatsParent {
		@ApiModelProperty(value = "二级类目总称")
		@JsonProperty("next_name")
		private String nextName;

		@ApiModelProperty(value = "二级分类图标", example = "https://")
		private String info;
	}
	
	
	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	@ApiModel("好单库超级分类二级分类实体类")
	public static class Subcats implements Cloneable{
		@ApiModelProperty(value = "二级具体类目名")
		@JsonProperty("son_name")
		private String sonName;

		@ApiModelProperty(value = "二级分类图标", example = "https://")
		private String imgurl;
	}
}
